/**
 * @Description:
 * @Author: saqqdy
 * @LastEditors: saqqdy
 * @Date: 2021-07-18 00:39:35
 * @LastEditTime: 2021-07-18 12:01:24
 */
import TerserJSPlugin from 'terser-webpack-plugin'

import * as plugins from './plugins'

export default {
    optimization: {
        minimize: true,
        minimizer: [new TerserJSPlugin({})]
    },
    plugins: [plugins.cleanWebpackPlugin, plugins.miniCssExtractPlugin],
    performance: {
        hints: false,
        maxEntrypointSize: 512000,
        maxAssetSize: 512000
    }
}
